package com.igeek.config.ch01;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac=new AnnotationConfigApplicationContext(MyConfig.class);
        ICount count = ac.getBean(ICount.class);
        System.out.println(count.getClass().getName());

        int addResult = count.add(10,20);
        System.out.println("addResult ="+addResult);

        int divResult = count.div(50,20);
        System.out.println("divResult ="+divResult);
    }
}
